import request from '@/utils/request'

/**
 * 代理佣金明细分页查询
 * @param {查询条件} data
 */
export function listCorecmsagentorderdetails(query) {
  return request({
    url: 'agent/Corecmsagentorderdetails/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增代理佣金明细
 * @param data
 */
export function addCorecmsagentorderdetails(data) {
  return request({
    url: 'agent/Corecmsagentorderdetails',
    method: 'post',
    data: data,
  })
}
/**
 * 修改代理佣金明细
 * @param data
 */
export function updateCorecmsagentorderdetails(data) {
  return request({
    url: 'agent/Corecmsagentorderdetails',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取代理佣金明细详情
 * @param {Id}
 */
export function getCorecmsagentorderdetails(id) {
  return request({
    url: 'agent/Corecmsagentorderdetails/' + id,
    method: 'get'
  })
}

/**
 * 删除代理佣金明细
 * @param {主键} pid
 */
export function delCorecmsagentorderdetails(pid) {
  return request({
    url: 'agent/Corecmsagentorderdetails/delete/' + pid,
    method: 'POST'
  })
}
